package com.mszlu.blog.service;


import com.mszlu.blog.dao.pojo.Category;
import com.mszlu.blog.vo.CategoryVo;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.params.CategoryPageParam;

import java.util.List;

public interface CategoryService {

    //根据id查询分类信息
    CategoryVo findCategoryById(Long categoryId);
    //查询所有分类信息
    List<CategoryVo> findCategoryAll();

    //查询所有分类信息
    Result findAllDetail();
    //通过id查询分类信息
    Result categoriesDetailById(Long id);

    Result getCategoryAll(CategoryPageParam params);

    Result deleteCategoryById(Long id);

    Result UpdateCategoryById(Category category);

    Result addCategory(Category category);
}
